package com.siwei.mes.entity.system;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;


/**
 * (Serial)实体类
 *
 * @author linzi
 * @since 2023-04-08 20:16:24
 */
@Data
@Accessors(chain = true)
@Table(name = "pk_serial")
@ApiModel(value = "Serial", description = "")
public class Serial implements Serializable {
    private static final long serialVersionUID = 199273160086744267L;
    /**
     * 序号code
     */
    @Id
    @ApiModelProperty(value = "主键ID", name = "serialNo")
    private String serialNo;
    /**
     * 序号编码
     */
    @Column(name = "serial_number")
    @ApiModelProperty(value = "序号编码", name = "serialNumber")
    private String serialNumber;
    /**
     * 备注
     */
    @Column(name = "remark")
    @ApiModelProperty(value = "备注", name = "remark")
    private String remark;

    @Column(name = "serial_year")
    @ApiModelProperty(value = "年")
    private String serialYear;

    @Column(name = "serial_month")
    @ApiModelProperty(value = "月")
    private String serialMonth;

    @Column(name = "serial_day")
    @ApiModelProperty(value = "日")
    private String serialDay;

    @Column(name = "is_clean")
    @ApiModelProperty(value = "是否重置编号 0:否 1:是")
    private Integer isClean;

    @Column(name = "clean_type")
    @ApiModelProperty(value = "清空周期 1:天 2:年")
    private Integer cleanType;
}
